<template>
  <div class="insatll">
    <top :text="'设置'"></top>
    <div style="height: 40px;"></div>
    <div class="mT10">
      <div class="insatllDetail fr" @click="$router.push({path:'/main/aboutCoin'})">
        <div>
          <span class="c3 mT10 fa">关于币哩币哩</span>
          <img src="../../assets/nav.png" alt="" class="c9 fa fr15 middle t20" width="7">
        </div>
      </div>
      <div class="insatllDetail fr" @click="$router.push({path:'/main/management'})">
        <div>
          <span class="c3 mT10 fa">密码管理</span>
          <img src="../../assets/nav.png" alt="" class="c9 fa fr15 middle t20" width="7">
        </div>
      </div>
    </div>
    <div style="padding:15px;margin-top:100px;" @click="exitLogin">
      <div class="exitLogin">退出登录</div>
    </div>
    <div>
      <confirm v-model="show" title="" @on-cancel="onCancel" @on-confirm="onConfirm">
        <p style="text-align:center;">确定要退出登录?</p>
      </confirm>
    </div>
  </div>
</template>
<script>
  import { Confirm, Group, XSwitch, TransferDomDirective as TransferDom } from 'vux'
  import Top from '../../components/common/top.vue'
  import util from '../../service/util.js'
  export default {
    data() {
      return {
        show: false,
      }
    },
    methods: {
      exitLogin() {
        this.show = true
      },
      onCancel() {
        this.show = false;
      },
      onConfirm() {
        util.removeItem("login.password");
        util.removeItem("login.username");
        util.removeItem("Authorization");
        this.$router.push({ path: '/login' })
      }
    },
    components: {
      Confirm,
      Group,
      XSwitch,
      Top,
    }
  }
</script>
<style lang="less">
  body {
    background: #f6f6f6;
  }

  .insatll .c9 {
    color: #999;
  }

  .insatll .fa {
    position: absolute;
  }

  .insatll .fr {
    position: relative;
  }

  .insatll .fr15 {
    right: 15px;
  }

  .insatll .t20 {
    top: 20px;
  }

  .insatll .t10 {
    top: 10px;
  }

  .insatll .mT10 {
    margin-top: 10px;
  }

  .insatll .middle {
    vertical-align: middle;
  }

  .insatll .mt15 {
    margin-top: 15px;
  }

  .insatll .mgL8 {
    margin-left: 8px;
  }

  .insatll .mgb15 {
    margin-bottom: 15px;
  }

  .insatll .mgT5 {
    margin-top: 5px;
  }

  .insatll .copyBtn {
    color: #fff;
    background: linear-gradient(left, #fedd32, #fe9f0a);
    display: inline-block;
    width: 50px;
    text-align: center;
    height: 20px;
    line-height: 20px;
    font-size: 13px;
    top: 12px;
  }

  .insatll .helpLower {
    transition: all 0.5s;
    transform: rotate(180deg);
  }

  .insatll.bankMoney {
    border: none;
    outline: none;
    text-align: right;
    display: inline-block;
    height: 45px;
    width: 70%;
    font-size: 15px;
  }

  .insatll .vux-header {
    background: #fff;
  }

  .insatll .vux-header .vux-header-title {
    line-height: 40px;
    text-align: center;
    font-size: 18px;
    font-weight: 400;
    color: #000;
  }

  .insatll .vux-header .vux-header-left .left-arrow:before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid #000;
    border-width: 1px 0 0 1px;
    -webkit-transform: rotate(315deg);
    transform: rotate(315deg);
    top: 8px;
    left: 7px;
  }

  .insatll .insatllDetail {
    border: 1px solid #f6f6f6;
    min-height: 45px;
    /* line-height: 45px; */
    background: #fff;
    padding-left: 15px;
    position: relative;
  }

  .insatll .twoToken {
    border-top: 1px solid #f6f6f6;
    margin-top: 10px;
    color: #666;
    font-size: 14px;
    margin-left: -15px;
    padding-left: 15px;
    padding-top: 10px;
  }

  .insatll .exitLogin {
    color: #fff;
    height: 45px;
    line-height: 45px;
    text-align: center;
    background: linear-gradient(left, #fedd32, #fe9e09);
    background: -webkit-gradient(linear, left top, right top, from(#fedd32), to(#fe9e09));
    border-radius: 25px;
  }
</style>